package priv.mill.dao.mapper;

import java.util.List;

import priv.mill.entry.<%=xia2Pasic(table.attr["@_name"])%>;
<%
	var id=Array.isArray(table.id)?table.id[0]:table.id;
%>
public interface <%=xia2Pasic(table.attr["@_name"])%>Mapper {
	
	<%=xia2Pasic(table.attr["@_name"])%> get<%=xia2Pasic(table.attr["@_name"])%>ById(Integer <%=xia2TuoFeng(id.attr["@_name"])%>);
	
	<%=xia2Pasic(table.attr["@_name"])%> get<%=xia2Pasic(table.attr["@_name"])%>ByEntry(<%=xia2Pasic(table.attr["@_name"])%> <%=xia2TuoFeng(table.attr["@_name"])%>);
	
	List<<%=xia2Pasic(table.attr["@_name"])%>> get<%=xia2Pasic(table.attr["@_name"])%>sByPage(<%=xia2Pasic(table.attr["@_name"])%> <%=xia2TuoFeng(table.attr["@_name"])%>);
	
	int update<%=xia2Pasic(table.attr["@_name"])%>(<%=xia2Pasic(table.attr["@_name"])%> <%=xia2TuoFeng(table.attr["@_name"])%>);
	
	int insert<%=xia2Pasic(table.attr["@_name"])%>(<%=xia2Pasic(table.attr["@_name"])%> <%=xia2TuoFeng(table.attr["@_name"])%>);
		
	int delete<%=xia2Pasic(table.attr["@_name"])%>(Integer <%=xia2TuoFeng(id.attr["@_name"])%>);
}
